﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Danh_muc_thiet_bi.aspx.cs" Inherits="DanhMuc_Danh_muc_thiet_bi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            height: 40px;
        }
    .style2
    {
        height: 34px;
    }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">
       
         <tr>
		 <td class="cssPageTitleBG" colspan="4">
		        <asp:label id="lbl_thong_tin_chi_tiet_tv" runat="server" CssClass="cssPageTitle" Text="Quản lý thông tin Thiết bị"/>
		 </td>
	</tr>
        <tr align="left" class ="styErorr">
            <td colspan="4">
             
		    <asp:validationsummary runat="server" CssClass="cssManField" Font-Bold="true" Height="29px" ID="m_val_error" />
           

            </td>
        </tr>
     <tr>
         <td align="right" class="style1">
             
             <asp:label id="Label5" CssClass="cssManField" runat="server" Text="Loại thiết bị"/>
        </td>
        <td colspan=1 class="style1">
			    <asp:DropDownList id="m_cbo_loai_thiet_bi" runat="server" Width="80%" 
                CssClass="cssDorpdownlist" Height="22px"  >
                 <%--   onselectedindexchanged="m_cbo_loai_thiet_bi_SelectedIndexChanged"  >--%>
                <asp:ListItem Selected="True"></asp:ListItem>
                </asp:DropDownList>
                
                (*)
		</td>
         
    </tr>
   
    <tr>
        <td align="right" colspan="1">

             <asp:label id="Label25" CssClass="cssManField" runat="server" Text="Tên máy"/>
        </td>
        <td colspan="1">

            <asp:TextBox runat="server" ID="m_txt_ten_may" Width="80%"></asp:TextBox>
            (*)
        </td>
         
        <td align="right" colspan="1">

             <asp:label id="Label24" CssClass="cssManField" runat="server" Text="Model"/>

        </td>
        <td colspan="1">

            <asp:TextBox runat="server" ID="m_txt_model" Width="80%"></asp:TextBox>

        </td>
        </tr>
        <tr>
         <td align="right" class="style2">
             <asp:label id="Label18" CssClass="cssManField" runat="server" Text="Hãng sản xuất"/>
        </td>
        <td>

            <asp:TextBox runat="server" ID="m_txt_hang_san_xuat" Width="80%"></asp:TextBox>

            </td>
         <td align="right" class="style2">
             <asp:label id="Label19" CssClass="cssManField" runat="server" Text="Xuất xứ"/>
        </td>
        <td>

            <asp:TextBox runat="server" ID="m_txt_xuat_xu" Width="80%"></asp:TextBox>

		</td>
    </tr>
    <tr>
         <td align="right" class="style2" colspan="1">
             <asp:label id="Label22" CssClass="cssManField" runat="server" Text="Mô tả thêm"/>
        </td>
        <td colspan="3" class="style2">

            <asp:TextBox ID="m_txt_mo_ta_them" runat="server" Width="90%"></asp:TextBox>

		</td>
        
    </tr>
        <tr>
            <td align="right">
             <asp:label id="Label26" CssClass="cssManField" runat="server" Text="Hoá chất kèm theo"/>
            </td>
            <td colspan="3">

            <asp:TextBox ID="m_txt_hoa_chat_kem_theo" runat="server" Width="90%"></asp:TextBox>

		    </td>
            
        </tr>
     <tr>
            <td colspan="4" align="center">
                <asp:button id="m_cmd_cap_nhat" accessKey="v" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Cập nhật" Height="22px" OnClick="m_cmd_cap_nhat_Click1" />&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
               <asp:button id="m_cmd_them_moi" accessKey="l" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Thêm mới" 
                                    Height="22px" Visible = "true" 
                    onclick="m_cmd_them_moi_Click"/> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
			   <asp:button id="m_cmd_xoa_trang" accessKey="x" CssClass="cssButton" 
                            runat="server" Width="98px" Text="Xóa trắng" Height="22px" 
                    onclick="m_cmd_xoa_trang_Click"/>
                        
            </td>
        </tr>

    <!-- Nhãn Thêm, sửa đối tác hoặc danh sách đối tác-->
    <tr>
		<td class="cssPageTitleBG" colspan="4">
		    <asp:label id="m_lbl_nhan_doi_tac" runat="server" CssClass="cssPageTitle" Text="Kết quả lọc dữ liệu"/>
		</td>
	</tr>
    <!-- Lưới dữ liệu -->	
	    <tr>
            <td align="left" class="style5">
                    <asp:label id="m_lbl_thong_bao" CssClass="cssManField" runat="server" />
		            </td>

        </tr>
	<tr>
		<td align="center" colspan="4" valign="top">
                <asp:GridView ID="m_grv_dm_thiet_bi" runat="server" CellPadding="4" DataKeyNames="ID"
                AutoGenerateColumns="False" Width="98%" BackColor="White" BorderColor="#3366CC" 
                BorderStyle="None" BorderWidth="1px" OnRowDeleting="m_grv_dm_thiet_bi_RowDeleting" OnRowUpdating="m_grv_dm_thiet_bi_RowUpdating">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <%--<asp:CommandField SelectText="Sửa" ShowSelectButton="True" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>--%>
                        <%--<asp:CommandField DeleteText="Xóa" ShowDeleteButton="True" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:CommandField>--%>
                        <asp:TemplateField HeaderText="Sửa">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbt_chi_tiet" CommandName="Update" ToolTip="Sửa"
                                    CausesValidation="false"><center><img src="../Images/Button/edit.png" width="20px" height="20px" alt="Sửa" /></center></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Xóa">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="m_lbt_xoa" CommandName="Delete" OnClientClick="return confirm ('Các dữ liệu liên quan cũng sẽ bị xóa. Bạn có thực sự muốn xóa ?')"
                                    ToolTip="Xóa dự án này" CausesValidation="false"><center><img src="../Images/Button/deletered.png" width="20px" height="20px" alt="Xóa" /></center></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="STT" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %></ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="TEN_MAY" HeaderText="Tên máy">
                        </asp:BoundField>
                        <asp:BoundField DataField="MODEL" ItemStyle-HorizontalAlign="Center" 
                            HeaderText="Model">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="HANG_SAN_XUAT" HeaderText="Hãng sản xuất" />
                        <asp:BoundField DataField="XUAT_XU" HeaderText="Xuất xứ" />
                        <asp:BoundField DataField="MO_TA_THEM" HeaderText="Mô tả thêm" />
                        <asp:BoundField DataField="HOA_CHAT_KEM_THEO" HeaderText="Hoá chất kèm theo" />
                    </Columns>
                    <EditRowStyle BackColor="#7C6F57" />
                    <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#810c15" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#E3EAEB" />
                    <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#C5BBAF" Font-Bold="True"
                        ForeColor="#333333"></SelectedRowStyle>
                </asp:GridView>
        </td>
	</tr>	
</table>
</asp:Content>

